package com.xianyun.book.auth.click;

import lombok.NonNull;
import org.springframework.stereotype.Service;
import top.dcenter.ums.security.core.oauth.exception.Auth2Exception;
import top.dcenter.ums.security.core.oauth.oneclicklogin.service.OneClickLoginService;
import java.util.Map;

/**
 * @author macos-zyj
 */
@Service
public class OneClickLoginServiceImpl implements OneClickLoginService {

    /**
     * 根据 accessToken 从服务商获取用户手机号
     * @param accessToken   access token
     * @param otherParamMap 其他请求参数 map(包括请求头参数), map(paramName, paramValue)
     * @return 手机号
     * @throws Auth2Exception 获取手机号失败
     */
    @NonNull
    @Override
    public String callback(String accessToken, Map<String, String> otherParamMap) throws Auth2Exception {
        return null;
    }
}
